//
//  MineRightHeadCVCell.m
//  Shine
//
//  Created by dllo on 16/3/11.
//  Copyright © 2016年 王斌. All rights reserved.
//

#import "MineRightHeadCVCell.h"
#define WIDTHCVCELL self.contentView.frame.size.width
#define HEIGHTCVCELL self.contentView.frame.size.height
@implementation MineRightHeadCVCell
- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell{
    self.totalLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.totalLabel];
    self.stepNumberLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.stepNumberLabel];
    self.stepLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.stepLabel];
    self.kilocalorieLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.kilocalorieLabel];
    self.kilocalorieNumberLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.kilocalorieNumberLabel];
    self.kilometreLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.kilometreLabel];
    self.kilometreNumberLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.kilometreNumberLabel];
    self.hourLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.hourLabel];
    self.hourNumberLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.hourNumberLabel];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.totalLabel.frame = CGRectMake(20, 10, WIDTHCVCELL/2, 30);
//    self.totalLabel.textAlignment = YES;
    self.stepNumberLabel.frame = CGRectMake(10, 40, 130, 60);
    self.stepNumberLabel.textAlignment = YES;
    self.stepLabel.frame = CGRectMake(130, 65, 50, 30);
    self.stepLabel.textAlignment = YES;
    self.kilocalorieLabel.frame = CGRectMake(10, 100, 60, 30);
    self.kilocalorieLabel.textAlignment = YES;
    self.kilocalorieNumberLabel.frame = CGRectMake(0, 130, 100, 50);
    self.kilocalorieNumberLabel.textAlignment = YES;
    self.kilometreLabel.frame = CGRectMake(150, 100, 60, 30);
    self.kilometreLabel.textAlignment = YES;
    self.kilometreNumberLabel.frame = CGRectMake(130, 130, 100, 50);
    self.kilometreNumberLabel.textAlignment = YES;
    self.hourLabel.frame = CGRectMake(WIDTHCVCELL-80, 100, 60, 30);
    self.hourLabel.textAlignment = YES;
    self.hourNumberLabel.frame = CGRectMake(WIDTHCVCELL-100, 130, 100, 50);
    self.hourNumberLabel.textAlignment = YES;
    
}

@end
